<%@page import="java.util.List"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/view-system/include/contentTaglib.jsp"%>

<html>
<head>
<title>撤单记录</title>
	<script src="${ctxStaticSystem }/js/dataexport/exportCancelOrderRecord.js" type="text/javascript" ></script>
</head> 
<body>
<tags:dataSet id="exportCancel">
	<tags:dataField name="recordId" display="ID" visiable="false" sort="false"  cssClass="table-header-center" width="25%"/>
	<tags:dataField name="loanNo" display="贷款编号"  sort="false"  cssClass="table-header-center" width="25%"/>
	<tags:dataField name="custName" display="客户姓名"  sort="false"  cssClass="table-header-center" width="25%"/>
	<tags:dataField name="channelType" display="渠道类型"  sort="false"  cssClass="table-header-center" width="25%"/>
	<tags:dataField name="operatorId" display="操作员工号"  sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="operatorName" display="操作员姓名" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="salerId" display="销售工号" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="salerName" display="销售姓名" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="operateTime" display="操作时间" sort="false" width="25%" cssClass="table-header-center"/>
</tags:dataSet>

<tags:ajax id="queryListAjax" url="${ctx}/sms/cancelorder/queryList" type="post"
	contentType="application/x-www-form-urlencoded" formQuery="#cancelOrderRecordFrm" formSubmit="true"
	autoSend="false"/>
<tags:ajax id="exportExcelAjax" url="${ctx}/sms/cancelorder/queryList" type="post"
 	contentType="application/x-www-form-urlencoded" formQuery="#cancelOrderRecordFrm" formSubmit="true" 
    autoSend="false" onSuccess="onExportSucc"/>
<tags:boards>
	<tags:board boardTitle="撤单记录" width="100%">
		<form id="cancelOrderRecordFrm" class='m-cust'>
			<div class="row form-group">
		  		<div class="col-md-4 col-sm-4">
		  			<div class="col-md-4 col-sm-4">
		  				<label class="m-label">贷款编号：</label>
		  			</div>
					<div class="col-md-8 col-sm-8">
						<input name="loanNo" class="form-control m-input" id="loanNo" type="text">
					</div>
				</div>
		  		<div class="col-md-4 col-sm-4">
		  			<div class="col-md-4 col-sm-4">
		  				<label class="m-label">客户姓名：</label>
		  			</div>
					<div class="col-md-8 col-sm-8">
						<input name="custName" class="form-control m-input" id="custName" type="text">
					</div>
				</div>
		  		<div class="col-md-4 col-sm-4">
		  			<div class="col-md-4 col-sm-4">
		  				<label class="m-label">渠道类型：</label>
		  			</div>
					<div class="col-md-8 col-sm-8">
						<select name="channelType" class="form-control m-input" id="channelType">
						 <option value="">请选择</option>
						 <option value="交叉贷">交叉贷</option>
						 <option value="POS贷">POS贷</option>
						</select>
					</div>
				</div>
			</div>
			<div class="row form-group">
				<div class="col-md-4 col-sm-4">
		  			<div class="col-md-4 col-sm-4">
					 	<label class="m-label" >开始时间：</label>
					 </div>
					<div class="col-md-8 col-sm-8">
						<tags:datepicker dateFormat="yyyy-MM-dd" name="startDate" dateType="date" id="startDate"/>
		  			</div>
	  			</div>
		  		<div class="col-md-4 col-sm-4">
		  			<div class="col-md-4 col-sm-4">
					 	<label class="m-label" >结束时间：</label>
					 </div>
					<div class="col-md-8 col-sm-8">
						<tags:datepicker dateFormat="yyyy-MM-dd" name="endDate" dateType="date" id="endDate"/>
		  			</div>
		  		</div>
			
			</div> 
			<div class="form-group">
			   	<button class="btn btn-warning m-btn" type="button" onclick="query()">查询</button>
			   	<button class="btn btn-default m-btn" type="reset">重置</button>
			  	<button class="btn btn-info m-btn" type="button" onclick="exportExcel()">导出excel</button>
<!-- 					  	<button class="btn " type="button" onclick="onExportAllSucc()">全部导出</button> -->
<%-- 					  	<a class="btn " href="${ctx}/sms/queryHandleSettle/exportAll">全部导出</a> --%>
			</div>
			<div data-tag="结清证明" class="form-horizontal">
				<tags:datatable id="cancelTable" storage="false"  
					ajax="queryListAjax" dataSet="exportCancel" 
					pagination="cancelPagination" striped="true" 
					cutLine="true" />
				<tags:pagination pageSize="10" id="cancelPagination" 
				    pageChoice="10" datatable="cancelTable"/>	
			</div>
		</form>	 
	</tags:board>
</tags:boards>
</body>
	
</html>